package com.niit.objectFactory;

import org.apache.ibatis.reflection.factory.DefaultObjectFactory;

public class MyObjectFactory extends DefaultObjectFactory {

    // 泛型方法 Generic Method
    @Override
    public <T> T create(Class<T> type) {
        // TODO 完成自己的初始化逻辑
        System.out.println("我自己的初始化逻辑："+type);
        return super.create(type);
    }

    public static <T> void printAll(T t){

    }
}
